﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sample.Messages;
using SimpleServiceBus.Bus.MessageManagement.MessageHandling;

namespace SampleConsumer.Handlers {
    public class BadMessageHandler: IMessageHandler<BadMessage> {

        public void Handle(BadMessage message, SimpleServiceBus.Bus.Pipeline.IMessageContext context) {
            Logger.Log("Attempt #{0} to process the bad message", context.MessageEnvelope.RetryCount);
            throw new NotImplementedException();
        }

    }
}
